package com.member.server.domain.dto;

import com.alibaba.fastjson.JSON;
import com.member.server.entity.Account;
import com.member.server.entity.AccountLog;
import com.member.server.entity.Member;
import com.member.server.entity.Record;

import java.io.Serializable;
import java.util.List;

/**
 * @author gaojx1993
 * @version 1.0
 * @description MemAccLogInfoDTO
 * @since 2023/7/12 12:05
 */
public class MemAccLogInfoDTO implements Serializable {

    private final Member member;

    private final List<Account> accounts;

    private final List<AccountLog> accountLogs;

    private final List<Record> records;

    public MemAccLogInfoDTO(Member member, List<Account> accounts, List<AccountLog> accountLogs, List<Record> records) {
        this.member = member;
        this.accounts = accounts;
        this.accountLogs = accountLogs;
        this.records = records;
    }

    public Member getMember() {
        return member;
    }

    public List<Account> getAccounts() {
        return accounts;
    }

    public List<AccountLog> getAccountLogs() {
        return accountLogs;
    }

    public List<Record> getRecords() {
        return records;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
